package com.yejiarong.weather.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author YeJR
 */
@Data
public class FutureDayWeatherVo {

    /**
     * 省或直辖市
     */
    private String province;

    /**
     * 城市
     */
    private String city;

    /**
     * 区县
     */
    private String county;

    /**
     * 时间
     */
    private String time;

    /**
     * 天气情况
     */
    private String overallWeather;

    /**
     * 温度区间
     */
    private String temperatureRange;

    /**
     * 风向
     */
    private String windDirection;

    /**
     * 风速
     */
    private String windSpeed;

    /**
     * 小时天气
     */
    private List<FutureHourWeather> futureHourWeathers;


    /**
     * 未来每小时天气
     */
    @Data
    public static class FutureHourWeather {
        /**
         * 时间
         */
        @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
        private Date time;

        /**
         * 天气情况
         */
        private String overallWeather;

        /**
         * 温度
         */
        private Double temperature;

        /**
         * 风向
         */
        private String windDirection;

        /**
         * 风速
         */
        private String windSpeed;
    }
}
